package com.mall.order.feign;

import com.mall.common.dto.MemberReceiveAddressDTO;
import com.mall.common.utils.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author: 谢君臣
 * @Date: 2022/8/9-21:25
 * @version: 1.0
 * @function:
 */
@FeignClient("memberServer")
public interface MemberFeignClient {

    @GetMapping("/member/memberreceiveaddress/{memberId}/address")
    Result<List<MemberReceiveAddressDTO>> getAllReceiveAddress(@PathVariable Long memberId);


    @GetMapping("/member/memberreceiveaddress/{id}")
    @ApiOperation("信息")
    Result<MemberReceiveAddressDTO> get(@PathVariable("id") Long id);
}
